{% extends "personal_center/base.html" %}

{% block page_link %}
    <link rel="stylesheet" href="../../static/system_setup/css/style.css">
    <link rel="stylesheet" href="../../static/personal_center/css/style1.css" media="screen" type="text/css" />
{% endblock %}


{% block style %}
    <style>
        .add_class {
            background: #1E90FF;
        }
        tr {
            height: 35px;
        }
        th {
            text-align: center;
        }
        table {
            table-layout: fixed;
        }
        td:first-child, th:first-child {
            position: sticky;left: 0;z-index: 1;
        }
        thead tr th {
            position: sticky;top: 0;background-color: #E8E8E8;
        }
        th:first-child {
            z-index: 2;
        }
        .model_li {
            color: #3f414d;width: 25%;cursor: pointer;display: none;
        }
        .top_tag {
            border-bottom: #01AAED solid 2px;color: #01AAED;
        }
        table td {
            padding-right: 10px;
        }
        .tab_top {
            width: 100px;height: 40px;line-height: 40px;text-align: center;display: inline-block;cursor: pointer;
        }
        .shade {
            position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: rgba(36, 36, 36, 0.5);display: none;z-index: 10000;
        }
        #page_one button:hover {
            color: red;
        }
        .a_tag_cla {
            display: block;overflow: hidden;white-space: nowrap; text-overflow: ellipsis;height: 30px;line-height: 30px;padding-left: 1%;
        }
    </style>
{% endblock %}


{% block right_content %}
    <div id="new_models1" class="shade">
        <div id="new_models" style="width: 100%;height: 100%;position: absolute;">
            <div style="width: 500px;height: 200px;background: #F5F5F5;z-index: 10000;position: absolute;top: 50%;left: 50%;transform:translate(-50%,-50%);border-radius: 3px;border: #dfdfdf solid 1px;">
                <div id="box" style="width: 100%;height: 40px;background: #f4f7fa;cursor: move;border-top-left-radius: 3px;border-top-right-radius: 3px;line-height: 40px;border-bottom: #dfdfdf solid 1px;">
                    <div style="width: 50%;margin-left: 1%;display: inline-block;line-height: 0px;font-size: 14px;">
                        议题投票
                    </div>
                    <span onclick="close_models()" style="float: right;padding-right: 2%;cursor: pointer;">
                        <i class="iconfont icon-quchu"></i>
                    </span>
                </div>
                <div style="height: 115px;width: 100%;border-bottom: #dfdfdf solid 1px;">
                    <div style="width: 100%;margin-top: 3px;height: 40px;line-height: 40px;">
                        <input type="radio" name="vote" value="agree" style="margin-left: 2%;" checked> 同意
                        <input type="radio" name="vote" value="opposition" style="margin-left: 15px;"> 反对
                        <input type="radio" name="vote" value="waiver" style="margin-left: 15px;"> 弃权
                    </div>

                    <div style="margin-top: 3px;">
                        <textarea name="" id="vote_node" style="width: 96%;margin-left: 2%;border: #cfcfcf solid 1px;outline: none;"></textarea>
                    </div>
                </div>
                <div style="width: 100%;height: 40px;text-align: right;padding-right: 2%;">
                    <button id="summit_but" onclick="topic_vote()" style="width: 70px;height: 30px;border: #dfdfdf solid 1px;margin-top: 5px;border-radius: 3px;background: #1E90FF;color: white;line-height: 28px;">
                        {% if modify == 'true' %}
                            修改
                        {% else %}
                            投票
                        {% endif %}
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div style="width: 100%;height: 40px;background: white;border-bottom: #A9A9A9 solid 0.5px;line-height: 40px;padding-left: 1%;color: black;">
        <div id="my_application_tab" onclick="change_mind('my_application')" class="tab_top top_tag">
            议题详情
        </div>
        <div id="new_issues_tab" onclick="change_mind('new_issues')" class="tab_top">
            议题附件
        </div>
        <div id="vote_tab" onclick="change_mind('vote')" class="tab_top">
            投票详情
        </div>

        <div style="float: right;text-align: center;margin-right: 6px;height: 40px;padding-right: 1%;">
            <a style="font-size: 16px;color: #00a0e9;" {% if voting_flag == 'true' %} href="javascript:;" onclick="location.href=('/personal-center/TopicDeliberation.html?type={{ types }}')" {% endif %} href="javascript:history.go(-1)">返回</a>
            <img src="../../static/personal_center/img/返回.png" alt="" style="width: 17px;height: 17px;margin-top: -3px;">
        </div>

        {% if top_flag == 'true' or modify == 'true' %}
            <div id="" style="width: 100px;float: right;text-align: center;margin-right: 1%;height: 40px;">
                <button onclick="line_table()" style="line-height: 27px;border-radius: 3px;border: #1E90FF solid 0.5px;width: 70px;height: 30px;margin-top: 5px;background: #1E90FF;color: white;">
                    {% if modify == 'true' %}
                        修改
                    {% else %}
                        投票
                    {% endif %}
                </button>
            </div>
        {% endif %}
    </div>

    <div id="my_application" style="width: 100%;height: 95.5%;background-color: white;position: relative;"><!--startprint-->
        <div style="width: 100%;height: 40px;line-height: 40px;text-align: center;">
            <div style="width: 33%;height: 100%;display: inline-block;vertical-align: top;text-align: left;padding-left: 4.8%;">
                {% if UpperNextDict.upper.status == 'true' %}
                    <a href="/personal-center/vote_detail.html?voting=true&vote_id={{ UpperNextDict.upper.obj.id }}&id={{ UpperNextDict.upper.obj.topic.id }}"><button style="width: 100px;height: 30px;margin-top: 5px;border-radius: 3px;border: #00a0e9 solid 1px;color: #00a0e9;line-height: 27px;background: white;"><img src="../../static/personal_center/img/上一个.png" alt="" style="width: 17px;height: 17px;margin-top: -1px;">上一议题</button></a>
                    <span><a href="/personal-center/vote_detail.html?voting=true&vote_id={{ UpperNextDict.upper.obj.id }}&id={{ UpperNextDict.upper.obj.topic.id }}" style="color: #999999;font-size: 14px;width: 200px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;vertical-align: top;" title="{{ UpperNextDict.upper.obj.topic.topics_name }}"><strong>{{ UpperNextDict.upper.obj.topic.topics_name }}</strong></a></span>
                {% else %}
                    <a href="javescript:;"><button style="width: 100px;height: 30px;margin-top: 5px;border-radius: 3px;border: #00a0e9 solid 1px;color: #00a0e9;line-height: 27px;background: white;"><img src="../../static/personal_center/img/上一个.png" alt="" style="width: 17px;height: 17px;margin-top: -1px;">上一议题</button></a>
                <span><a href="javescript:;" style="color: #999999;font-size: 14px;width: 200px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;vertical-align: top;"><strong>没有上一个议题了！</strong></a></span>
                {% endif %}
            </div>
            <div style="width: 33%;height: 100%;display: inline-block;vertical-align: top;"><h3 id="h_title">
                {% if obj.type == 'yb' %}
                    院长办公会议题审批表
                {% elif obj.type == 'db' %}
                    党委会议题审批表
                {% else %}
                    行政例会议题审批表
                {% endif %}</h3></div>
            <div style="width: 33%;height: 100%;display: inline-block;vertical-align: top;text-align: right;padding-right: 4.8%;">
                {% if UpperNextDict.next.status == 'true' %}
                    <span><a href="/personal-center/vote_detail.html?voting=true&vote_id={{ UpperNextDict.next.obj.id }}&id={{ UpperNextDict.next.obj.topic.id }}" style="color: #999999;font-size: 14px;width: 200px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;vertical-align: top;" title="{{ UpperNextDict.next.obj.topic.topics_name }}"><strong>{{ UpperNextDict.next.obj.topic.topics_name }}</strong></a></span>
                    <a href="/personal-center/vote_detail.html?voting=true&vote_id={{ UpperNextDict.next.obj.id }}&id={{ UpperNextDict.next.obj.topic.id }}"><button style="width: 100px;height: 30px;margin-top: 5px;border-radius: 3px;border: #00a0e9 solid 1px;color: #00a0e9;line-height: 27px;background: white;">下一议题<img src="../../static/personal_center/img/下一个.png" alt="" style="width: 17px;height: 17px;margin-top: -3px;"></button></a>
                {% else %}
                    <span><a href="javescript:;" style="color: #999999;font-size: 14px;width: 200px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;vertical-align: top;"><strong>没有下一个议题了！</strong></a></span>
                    <a href="javescript:;"><button style="width: 100px;height: 30px;margin-top: 5px;border-radius: 3px;border: #00a0e9 solid 1px;color: #00a0e9;line-height: 27px;background: white;">下一议题<img src="../../static/personal_center/img/下一个.png" alt="" style="width: 17px;height: 17px;margin-top: -3px;"></button></a>
                {% endif %}
            </div>
        </div>
        <hr>
        <div style="width: 100%;height: 95%;margin-top: 0.5px;overflow: auto;">
            <div style="width: 100%;">
                <table style="width: 90%;margin-left: 5%;">
                    {% if obj.received_foreign %}
                        <tr style="width: 100%;margin-top: 20px;">
                            <td colspan="6" style="width: 100%;height: 40px;line-height: 40px;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                上级来文详情
                            </td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                接收科室
                            </td>
                            <td style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;">{{ obj.received_foreign.apply_user.company.name }}</td>
                            <td style="width: 13%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                接收人
                            </td>
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;">{{ obj.received_foreign.apply_user.real_name }}</td>
                            <td style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                收文编号
                            </td>
                            <td style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;border-top: none;">{{ obj.received_foreign.recive_number }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                来文单位
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.send_company }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                来文字号
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.send_number }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                收文日期
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">
                                {{ obj.received_foreign.recive_time | date:"Y-m-d H:i" }}
                            </td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.title }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                内&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;容
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.content }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                标注文本
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.annotated_text }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                时间期限
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.time_limit }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注
                            </td>
                            <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.remarks }}</td>
                        </tr>
                    {% endif %}
                    <tr style="width: 100%;">
                        <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">申请详情</td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            提&nbsp;&nbsp;交&nbsp;&nbsp;人
                        </td>
                        <td id="tjr" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ obj.employee.real_name }}</td>
                        <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            提交科室
                        </td>
                        <td id="tjks"
                            style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ obj.employee.company.name }}</td>
                        <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            议题编号
                        </td>
                        <td id="bh" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ obj.number }}</td>
                    </tr>
                    {% if obj.topic_type %}
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">议题类型</td>
                            <td {% if obj.topic_type == "4" or obj.topic_type == "5" or obj.topic_type == "6" %}colspan="5"{% elif obj.topic_type == "3" or obj.topic_type == "7" %}colspan="3"{% endif %} style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">
                                {% if obj.topic_type == "1" %}
                                    付款类
                                {% elif obj.topic_type == "2" %}
                                    经济合同类
                                {% elif obj.topic_type == "3" %}
                                    项目类
                                {% elif obj.topic_type == "4" %}
                                    文件类
                                {% elif obj.topic_type == "5" %}
                                    方案类
                                {% elif obj.topic_type == "7" %}
                                    招标采购类
                                {% else %}
                                    其他事项
                                {% endif %}
                            </td>
                            {% if obj.topic_type == "1" or obj.topic_type == "2" %}
                                <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    {% if obj.topic_type == "1" %}
                                        付款类型
                                    {% else %}
                                        合同类型
                                    {% endif %}
                                </td>
                                <td id="pay_type_select" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">
                                    {% if obj.topic_type == "1" %}
                                        {% if obj.pay_type == "1" %}
                                            合同付款
                                        {% elif obj.pay_type == "2" %}
                                            固定资产/维修维保付款
                                        {% elif obj.pay_type == "3" %}
                                            材料付款
                                        {% elif obj.pay_type == "4" %}
                                            餐补付款
                                        {% elif obj.pay_type == "5" %}
                                            学科经费
                                        {% elif obj.pay_type == "6" %}
                                            科研经费
                                        {% else %}
                                            一般付款
                                        {% endif %}
                                    {% else %}
                                        {% if obj.contract_type == "1" %}
                                            服务类
                                        {% elif obj.contract_type == "2" %}
                                            货物类
                                        {% elif obj.contract_type == "3" %}
                                            工程类
                                        {% else %}
                                            其他类
                                        {% endif %}
                                    {% endif %}
                                </td>
                                <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">是否转党委会</td>
                                <td style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">
                                    {% if obj.whether_outweigh == "1" %}
                                        是
                                    {% else %}
                                        否
                                    {% endif %}
                                </td>
                            {% elif obj.topic_type == "3" %}
                                <td id="WhetherBidTitle" style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">是否招标</td>
                                <td id="WhetherBid" style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;">
                                    {% if obj.whether_bid == "1" %}
                                        是
                                    {% else %}
                                        否
                                    {% endif %}
                                </td>
                            {% endif %}

                            {% if obj.topic_type == "7" %}
                                <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">是否转党委会</td>
                                <td style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">
                                    {% if obj.whether_outweigh == "1" %}
                                        是
                                    {% else %}
                                        否
                                    {% endif %}
                                </td>
                            {% endif %}
                        </tr>
                        {% if obj.topic_type == "1" %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">收款单位</td>
                                <td id="Payee" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.Payee }}</td>
                                <td style="width: 13%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">收款账号</td>
                                <td id="receiving_account" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.receiving_account }}</td>
                                <td style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">开户行</td>
                                <td id="opening_bank" style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;">{{ obj.opening_bank }}</td>
                            </tr>
                        {% elif obj.topic_type == "2" %}
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">对方单位</td>
                                <td id="opposite_unit" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.Payee }}</td>
                                <td style="width: 13%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">合同名称</td>
                                <td id="contract_name" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.contract_name }}</td>
                                <td style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">合同编号</td>
                                <td id="contract_number" style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;">{{ obj.contract_number }}</td>
                        {% endif %}

                        {% if obj.topic_type == "1" %}
                            <tr id="payment_capitalization" style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">申请金额</td>
                            <td id="application_amount" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;">{{ obj.application_amount }}</td>
                            <td style="width: 13%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">金额大写</td>
                            <td id="amount_words" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;">{{ obj.amount_words }}</td>
                            <td style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">经费来源</td>
                            <td style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;">
                                {% if obj.funding_source == "1" %}
                                    自有经费
                                {% elif obj.funding_source == "2" %}
                                    学科经费
                                {% elif obj.funding_source == "3" %}
                                    科研经费
                                {% elif obj.funding_source == "4" %}
                                    财政拨款
                                {% elif obj.funding_source == "5" %}
                                    贴息贷款
                                {% elif obj.funding_source == "6" %}
                                    专项债券
                                {% elif obj.funding_source == "7" %}
                                    工会经费
                                {% else %}

                                {% endif %}
                            </td>
                        </tr>
                        {% endif %}
                    {% else %}
                    {% endif %}

                    <tr id="xb_ks" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                            协办科室
                        </td>
                        <td id="xieban" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;">{{ data_dic.help_department }}</td>
                        <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            预算金额(不超过)
                        </td>
                        <td id="ysje" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ data_dic.ysje }}</td>
                        <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            经费来源
                        </td>
                        <td id="jfly" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ data_dic.jfly }}</td>
                    </tr>
                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                            议题名称
                        </td>
                        <td id="ytmc" colspan="3" style="width: 50%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ data_dic.topics_name }}</td>
                        <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            预估用时(分钟)
                        </td>
                        <td id="ygys" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ data_dic.topics_estimate }}</td>
                    </tr>
                    {% if data_dic.yb_number %}
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                院长办公会<br>议&nbsp;题&nbsp;编&nbsp;号
                            </td>
                            <td id="yb_number" colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ data_dic.yb_number }}</td>
                        </tr>
                    {% endif %}
                    {% if 'PG' in data_dic.audit_list and obj.state != 'PG' and data_dic.db_topics_text or data_dic.db_topics_basis or data_dic.db_solution %}
                        <tr style="width: 100%;">
                            <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">院长办公会议题内容</td>
                        </tr>
                    {% endif %}

                    <tr style="width: 100%;">
                        <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                            议题简述
                        </td>
                        <td id="ytnr" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                        </td>
                    </tr>
                    <tr id="yt_yj" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                        <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                            政策依据<br>或调研论<p style="letter-spacing: 1px;">证&nbsp;&nbsp;情&nbsp;&nbsp;况</p>
                        </td>
                        <td id="ytyj" colspan="5"
                            style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;"></td>
                    </tr>
                    <tr id="jj_fa" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                        <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            拟供选择
                            <p style="letter-spacing: 3px;">方&nbsp;&nbsp;&nbsp;&nbsp;案</p>
                        </td>
                        <td id="jjfa" colspan="5"
                            style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;"></td>
                    </tr>

                    {% if obj.received_foreign %}
                        <tr style="width: 100%;">
                            <td colspan="6" style="width: 100%;height: 40px;line-height: 40px;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                上级来文审批详情
                            </td>
                        </tr>
                        {% if 'one' in received_audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 0.7%;border-top: none;letter-spacing: 4px;">
                                    {% if company_type == 'yb' %}
                                        医院办公室
                                    {% else %}
                                        党委办公室
                                    {% endif %}
                                </td>
                                <td colspan="5" style="width: 85%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;">
                                    {% for k,v in received_audit_dic.items %}
                                        {% if k == 'one' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                                 style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'two' in received_audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 1px;">
                                    分&nbsp;&nbsp;管&nbsp;&nbsp;领&nbsp;&nbsp;导
                                </td>
                                <td colspan="5" style="width: 85%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;">
                                    {% for k,v in received_audit_dic.items %}
                                        {% if k == 'two' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if item.state_display != 'end' %}
                                                            <span>{{ item.state_display }}</span>
                                                        {% else %}
                                                            <span>完结</span>
                                                        {% endif %}
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                                 style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}
                    {% endif %}

                    {% if 'PG' in data_dic.audit_list and obj.state != 'PG' %}
                        <tr>
                            <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                院长办公会审批详情
                            </td>
                        </tr>
                    {% else %}
                        <tr>
                            <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                审批详情
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'B' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'B' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span>{{ item.state_display }}</span>
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'OPR' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                医&nbsp;院&nbsp;办&nbsp;公&nbsp;室&nbsp;初&nbsp;审
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'OPR' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    {% if item.state_display == '同意' %}
                                                        已审核
                                                    {% else %}
                                                        <span>{{ item.state_display }}</span>
                                                    {% endif %}
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if obj.type == 'xz' %}
                        {% if 'YZ/SJ' in data_dic.audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    {% if obj.type == 'db' %}
                                        {% if obj.is_yb %}
                                            院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                        {% else %}
                                            书&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                        {% endif %}
                                    {% else %}
                                        院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                    {% endif %}
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in data_dic.audit_list.items %}
                                        {% if k == 'YZ/SJ' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'YB/DB' in data_dic.audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    医&nbsp;&nbsp;&nbsp;院&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in data_dic.audit_list.items %}
                                        {% if k == 'YB/DB' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if item.state_display == '同意' %}
                                                            已审核
                                                        {% else %}
                                                            <span>{{ item.state_display }}</span>
                                                        {% endif %}
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}
                    {% else %}
                        {% if 'YB/DB' in data_dic.audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    {% if 'yb_result' in data_dic.audit_list or obj.type == 'yb' %}
                                        医&nbsp;院&nbsp;办&nbsp;公&nbsp;室&nbsp;核&nbsp;稿
                                    {% else %}
                                        党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                                    {% endif %}
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in data_dic.audit_list.items %}
                                        {% if k == 'YB/DB' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if item.state_display == '同意' %}
                                                            已审核
                                                        {% else %}
                                                            <span>{{ item.state_display }}</span>
                                                        {% endif %}
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'Y_D_leader' in data_dic.audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    党委办公室分管领导
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in data_dic.audit_list.items %}
                                        {% if k == 'Y_D_leader' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'YZ/SJ' in data_dic.audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    {% if obj.type == 'db' %}
                                        {% if obj.is_yb %}
                                            院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                        {% else %}
                                            书&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                        {% endif %}
                                    {% else %}
                                        院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                    {% endif %}
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in data_dic.audit_list.items %}
                                        {% if k == 'YZ/SJ' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}
                    {% endif %}

                    {% if 'yb_result' in data_dic.audit_list %}
                        {% if vote_obj %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    院&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;会
                                </td>
                                <td colspan="5" style="width: 85%;height: 75px;border: #cccccc solid 1px;border-top: none;outline: none;padding-left: 0.5%;">
                                    <div style="width: 100%;height: 80px;position: relative;">
                                        <span>{{ vote_obj.create_time|date:'Y年m月d日' }} 第 {{ vote_obj.meet_number }} 次院长办公会</span>
                                    </div>
                                    <div style="text-align: right;color: #0b0b0b;">{{ vote_obj.create_time|date:'Y-m-d H:i' }}</div>
                                </td>
                            </tr>
                        {% endif %}

                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                院长办公会会议结果
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'yb_result' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'marks' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                议&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'marks' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span>{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'transfer' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                提&nbsp;&nbsp;&nbsp;交&nbsp;&nbsp;&nbsp;党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;会
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'transfer' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'db_leader' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'db_leader' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span>{{ item.state_display }}</span>
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'PG' in data_dic.audit_list and obj.state != 'PG' and data_dic.db_topics_text or data_dic.db_topics_basis or data_dic.db_solution %}
                        <tr style="width: 100%;">
                            <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">党委会议题内容</td>
                        </tr>

                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                议题简述
                            </td>
                            <td id="dw_ytnr" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                            </td>
                        </tr>
                        <tr id="yt_yj" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                            <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                政策依据或调研论证情况
                            </td>
                            <td id="dw_ytyj" colspan="5"
                                style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;"></td>
                        </tr>
                        <tr id="jj_fa" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                            <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                拟供选择方案
                            </td>
                            <td id="dw_jjfa" colspan="5"
                                style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;"></td>
                        </tr>
                    {% endif %}

                    {% if 'PG' in data_dic.audit_list and obj.state != 'PG' %}
                        <tr>
                            <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                党委会审批详情
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'PG' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'PG' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    {% if item.state_display == '同意' %}
                                                        已审核
                                                    {% else %}
                                                        <span>{{ item.state_display }}</span>
                                                    {% endif %}
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'db_one_step' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'db_one_step' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span>{{ item.state_display }}</span>
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'db_two_step' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'db_two_step' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    {% if item.state_display == '同意' %}
                                                        已审核
                                                    {% else %}
                                                        <span>{{ item.state_display }}</span>
                                                    {% endif %}
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'db_three_step' in data_dic.audit_list %}
                    <tr style="width: 100%;" >
                        <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                            党委办公室分管领导
                        </td>
                        <td id="" colspan="5"
                            style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                            {% for k,v in data_dic.audit_list.items %}
                                {% if k == 'db_three_step' %}
                                    {% for item in v %}
                                        {% if item.state != 'unaudit' %}
                                            <div style="width: 100%;line-height: 20px;position: relative;">
                                                <span>{{ item.state_display }}</span>
                                                <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                            </div>
                                            <div>
                                                {% if item.signature_picture %}
                                                    <img src="{{ item.signature_picture }}" alt=""
                                                     style="width: 150px; height: 60px;">
                                                {% else %}
                                                    {{ item.audit_user }}
                                                {% endif %}
                                            </div>
                                            <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                        {% endif %}
                                    {% endfor %}
                                {% endif %}
                            {% endfor %}
                        </td>
                    </tr>
                {% endif %}

                    {% if 'sj' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                书&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'sj' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span>{{ item.state_display }}</span>
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'db_result' in data_dic.audit_list %}
                        {% if db_vote_obj %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    党&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;会
                                </td>
                                <td colspan="5" style="width: 85%;height: 75px;border: #cccccc solid 1px;border-top: none;outline: none;padding-left: 0.5%;">
                                    <div style="width: 100%;height: 80px;position: relative;">
                                        <span>{{ db_vote_obj.create_time|date:'Y年m月d日' }} 第 {{ db_vote_obj.meet_number }} 次党委会</span>
                                    </div>
                                    <div style="text-align: right;color: #0b0b0b;">{{ db_vote_obj.create_time|date:'Y-m-d H:i' }}</div>
                                </td>
                            </tr>
                        {% endif %}

                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                党&nbsp;委&nbsp;会&nbsp;会&nbsp;议&nbsp;结&nbsp;果
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'db_result' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}

                    {% if 'xz_result' in data_dic.audit_list %}
                        <tr style="width: 100%;" >
                            <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                行政例会会议结果
                            </td>
                            <td id="" colspan="5"
                                style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                {% for k,v in data_dic.audit_list.items %}
                                    {% if k == 'xz_result' %}
                                        {% for item in v %}
                                            {% if item.state != 'unaudit' %}
                                                <div style="width: 100%;line-height: 20px;position: relative;">
                                                    <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                </div>
                                                <div>
                                                    {% if item.signature_picture %}
                                                        <img src="{{ item.signature_picture }}" alt=""
                                                         style="width: 150px; height: 60px;">
                                                    {% else %}
                                                        {{ item.audit_user }}
                                                    {% endif %}
                                                </div>
                                                <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                {% endfor %}
                            </td>
                        </tr>
                    {% endif %}
                </table>
            </div>
            <div id="fujian_div" style="width: 90%;margin-left: 5%; display: none">
                <div style="width: 100%;height: 40px;line-height: 40px;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;border-top: none;border-bottom: none;padding-right: 1%;">
                    <span style="color: red;">* </span>附件
                    <a href="javascript:;" class="file" style="vertical-align: top;margin-top: 5px;float: right;">
                        上传附件
                        <input type="file" name="regular_main_body" id="regular_main_body"
                               onchange="upload_accessory('file1', 'regular_main', 'regular_main_body')">
                    </a>
                </div>
                <table style="width: 100%;">
                    <thead>
                    <tr>
                        <td style="width: 5%;border: #cccccc solid 1px;text-align: center;">序号</td>
                        <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">文件名称</td>
                        <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">文件大小</td>
                        <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">上传时间</td>
                        <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">上传人员</td>
                        <td style="width: 15%;border: #cccccc solid 1px;border-left: none;text-align: center;">操作</td>
                    </tr>
                    </thead>
                    <tbody style="overflow: auto;" id="regular_main">

                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div id="new_issues" style="width: 100%;height: 94%;overflow: auto;display: none;background-color: white;">
        <div style="display: inline-block;width: 20%;vertical-align: top;height: 99%">
            {% if received_file_list|length %}
                <div style="width: 100%;height: 40px;background: #c8cbcf;padding-left: 2%;line-height: 40px;color: #0c6fd9;">
                    上级来文附件
                </div>
                <div style="width: 100%;">
                    {% for received in received_file_list %}
                        <div><a href="javascript:;" class="a_tag_cla" onclick="chage_yulan(this, '{{ received.file_path }}')">{{ received.file_name }}</a></div>
                    {% endfor %}
                </div>
            {% endif %}
            <div style="width: 100%;height: 40px;background: #c8cbcf;padding-left: 2%;line-height: 40px;color: #0c6fd9;">
                {% if received_file_list|length %}
                    议题附件
                {% else %}
                    附件
                {% endif %}
            </div>
            <div id="yt_zhengwen" style="width: 100%;">
                {% for item in data_dic.main_file_list %}
                    <div><a href="javascript:;" class="a_tag_cla" onclick="chage_yulan(this, '{{ item.file_path }}')">{{ item.file_name }}</a></div>
                {% endfor %}
            </div>
        </div>
        <div style="display: inline-block;width: 78%;vertical-align: top;height: 99%;text-align: center;" id="fujian">
            {% if 'jpg' in data_dic.file_path or 'JPG' in data_dic.file_path or 'JPEG' in data_dic.file_path or 'jpeg' in data_dic.file_path or 'PNG' in data_dic.file_path or 'png' in data_dic.file_path %}
                <img src="{{ data_dic.file_path }}" alt="" style="width: 800px;height: 100%;">
            {% else %}
                <embed id="embed_file" src="{{ data_dic.file_path }}" type="application/pdf" style="width: 100%;height: 100%;">
            {% endif %}
        </div>
    </div>
    <div id="vote" style="width: 100%;height: 94.5%;display: none;position: relative">
        <div class="right-box" style="width: 100%;height: 100%;margin-top: 0;background-color: #00a0e9;">
            <div style="height: 100%;width: 100%;overflow: auto;background-color: white;">
                <div style="width: 100%;height: 63%;">
                    <div style="width: 100%;height: 82%;background: white;">
                        <div style="background: #00a0e9;color: white;padding-left: 1%;height: 40px;line-height: 40px;width: 100%;">投票汇总</div>
                        <div style="overflow: auto;width: 100%;height: 90%;">
                            <table class="table table-hover table-bordered" style="border-collapse: collapse;width: 100%;table-layout:fixed;">
                                <tr>
                                    <th style="height: 30px;">投票人</th>
                                    <th style="height: 30px;">投票结果</th>
                                    <th style="height: 30px;">投票时间</th>
                                    <th style="height: 30px;">投票意见</th>
                                    <th style="height: 30px;">签名</th>
                                </tr>
                                <tbody style="overflow: auto;" id="vote_body">
                                    {% for vote in all_list %}
                                        <tr>
                                            <td style="text-align: center;height: 30px;">{{ vote.real_name }}</td>
                                            <td style="text-align: center;height: 30px;">{{ vote.vote_reluse }}</td>
                                            <td style="text-align: center;height: 30px;">{{ vote.vote_time }}</td>
                                            <td style="padding-left: 5px;height: 30px;">{{ vote.vote_node }}</td>
                                            {% if vote.autograph %}
                                                <td style="text-align: center;height: 30px;"><img src="{{ vote.autograph }}" alt="" style="width: 100px;height: 30px;"></td>
                                            {% else %}
                                                <td style="text-align: center;height: 30px;"></td>
                                            {% endif %}
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                        <div id="img-display" style="width: 75%;text-align: center;position: fixed;display: none;">
                            <div style="margin-top: 10%;">
                                <img src="../../static/public_file/images/page-img/11.jpg" alt="">
                                <p style="margin: 0;padding: 0;vertical-align: top;">暂无数据</p>
                            </div>
                        </div>
                    </div>
                    <div style="width: 100%;height: 25%;overflow: auto;background: #DFDFDF;">
                        <div style="vertical-align: top;display: inline-block;width: 32.8%;height: 90%;background: white;margin-left: 0.3%;margin-top: 5px;">
                            <div style="height: 35px;width: 100%;background: #00a0e9;color: white;padding-left: 1%;line-height: 35px;">
                                请假人员
                            </div>
                            <div style="width: 100%;vertical-align: top;height: 68%;display: flex;align-items:center;justify-content:center;">
                                {% if not_attending_the_meeting %}
                                    {% if no_join_meet == "true" %}
                                        <div style="width: 49%;vertical-align: top;display: inline-block;height: 100%;padding-left: 1%;padding-top: 1%;">
                                            {{ not_meeting_reason }}
                                        </div>
                                    {% else %}
                                        <div style="width: 50%;vertical-align: top;display: inline-block;height: 100%;border-right: #cfcfcf solid 0.5px;padding-left: 1%;padding-top: 1%;">
                                            {{ not_attending_the_meeting }}
                                        </div>
                                        <div style="width: 49%;vertical-align: top;display: inline-block;height: 100%;padding-left: 1%;padding-top: 1%;">
                                            {{ not_meeting_reason }}
                                        </div>
                                    {% endif %}
                                {% else %}
                                    <div style="width: 150px;height: 70px;left:50%;top:50%;text-align: center;">
                                        <img src="../../static/public_file/images/暂无数据.png" alt="" style="width: 50px;height: 50px;">
                                        <p style="color: #cfcfcf;">暂无数据</p>
                                    </div>
                                {% endif %}
                            </div>
                        </div>
                        <div style="vertical-align: top;display: inline-block;width: 32.8%;height: 90%;background: white;margin-left: 2px;margin-top: 5px;">
                            <div style="height: 35px;width: 100%;background: #00a0e9;color: white;padding-left: 1%;line-height: 35px;">
                                离会人员
                            </div>
                            {% if DepartureMeetCount != 0 %}
                                <div style="width: 100%;height: 68%;">
                                    {% for foo in DepartureMeetObj %}
                                        <div style="width: 100%;height: 30px;line-height: 40px;border-bottom: #cfcfcf solid 1px;">
                                            <div style="width: 20%;text-align: center;display: inline-block;border-right: #cfcfcf solid 1px;">{{ foo.leaders.real_name }}</div>
                                            <div style="width: 78%;text-align: left;display: inline-block;padding-left: 2%;">
                                                {% if foo.departure_reason %}
                                                    {{ foo.departure_reason }}
                                                {% endif %}
                                            </div>
                                        </div>
                                    {% endfor %}
                                </div>
                            {% else %}
                                <div style="width: 100%;height: 70%;display: flex;align-items:center;justify-content:center;">
                                    <div style="width: 150px;height: 70px;left:50%;top:50%;text-align: center;">
                                        <img src="../../static/public_file/images/暂无数据.png" alt="" style="width: 50px;height: 50px;">
                                        <p style="color: #cfcfcf;">暂无数据</p>
                                    </div>
                                </div>
                            {% endif %}
                        </div>
                        <div style="vertical-align: top;display: inline-block;width: 32.8%;height: 90%;background: white;margin-left: 2px;margin-top: 5px;">
                            <div style="height: 35px;width: 100%;background: #00a0e9;color: white;padding-left: 1%;line-height: 35px;">
                                主持人
                            </div>
                            <div style="width: 100%;height: 68%;text-align: center;padding-top: 5%;">
                                <strong style="font-size: 20px;">{{ host_people }}</strong>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="width: 70%;height: 220px;padding-left: 20px;padding-top: 40px;">
                    <div style="width: 100%;height: 100px;line-height: 30px;">
                        <strong style="font-size: 20px;">已投票人数：{{ VotersNumber }} 人</strong>
                        <p style="font-size: 10px;color: #cfcfcf;">参会人数：{{ meet_leaders }} 人&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;应投票人数：{{ all_people_count }} 人</p>
                    </div>
                    <div class="skillbar clearfix " data-percent="{{ agree_number }}%">
                        <div class="skillbar-title" style="background: #27ae60;"><span>通过</span></div>
                        <div class="skillbar-bar" style="background: #2ecc71;"></div>
                        <div class="skill-bar-percent" style="color: #2ecc71;">{{ agree_number }}%</div>
                    </div> <!-- End Skill Bar -->

                    <div class="skillbar clearfix " data-percent="{{ opposition_number }}%">
                        <div class="skillbar-title" style="background: indianred;"><span>反对</span></div>
                        <div class="skillbar-bar" style="background: red;"></div>
                        <div class="skill-bar-percent" style="color: red;">{{ opposition_number }}%</div>
                    </div> <!-- End Skill Bar -->

                    <div class="skillbar clearfix " data-percent="{{ waiver_number }}%">
                        <div class="skillbar-title" style="background: yellowgreen"><span>弃权</span></div>
                        <div class="skillbar-bar" style="background: #c6ba0c;"></div>
                        <div class="skill-bar-percent">{{ waiver_number }}%</div>
                    </div> <!-- End Skill Bar -->
                </div>
            </div>
        </div>
    </div>
{% endblock %}

{% block script %}
    <script type="text/javascript" src='../../static/personal_center/js/jquery1.js'></script>
    <script type="text/javascript" src="../../static/personal_center/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="../../static/personal_center/js/jquery.jqprint-0.3.js"></script>
    <script src="../../static/personal_center/js/echarts.js"></script>
    <script>
        window.onload = function () {
            document.getElementById("loading").style.display = "none";
            document.getElementById("sponsor").className = "add-nav-active";
            var decode = atob('{{ data_dic.topics_text | safe }}');
            // 编码转字符串
            var content = decodeURI(decode);

            var decode1 = atob('{{ data_dic.topics_basis | safe }}');
            // 编码转字符串
            var content1 = decodeURI(decode1);
            if ('{{ data_dic.solution | safe }}' !== "空") {
                var decode2 = atob('{{ data_dic.solution | safe }}');
                var content2 = decodeURI(decode2);      // 编码转字符串
            }

            document.getElementById("ytnr").innerHTML = content;
            document.getElementById("ytyj").innerHTML = content1;
            document.getElementById("jjfa").innerHTML = content2;

            {% if 'PG' in data_dic.audit_list and obj.state != 'PG' and data_dic.db_topics_text or data_dic.db_topics_basis or data_dic.db_solution %}
                var decode_1 = atob('{{ data_dic.db_topics_text | safe }}');
                // 编码转字符串
                var content_1 = decodeURI(decode_1);

                var decode1_1 = atob('{{ data_dic.db_topics_basis | safe }}');
                // 编码转字符串
                var content1_1 = decodeURI(decode1_1);
                if ('{{ data_dic.db_solution | safe }}' !== "空") {
                    var decode2_1 = atob('{{ data_dic.db_solution | safe }}');
                    var content2_1 = decodeURI(decode2_1);      // 编码转字符串
                }
                document.getElementById("dw_ytnr").innerHTML = content_1;
                document.getElementById("dw_ytyj").innerHTML = content1_1;
                document.getElementById("dw_jjfa").innerHTML = content2_1;
            {% endif %}
        };

        // 我的申请
        function my_mine() {
            var iss_id = window.location.href.split("&id=")[1].replace("#", '');
            document.getElementById("loading").style.display = "inline-block";
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('get', "/administrative/TopicsDetailView?id=" + String(iss_id), true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send();
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(">>>>>>>>>> ", JsonDate)

                        if (JsonDate["data_dic"]["number"].indexOf("JYYB") !== -1) {
                            document.getElementById("h_title").innerText = "院长办公会议题审批表";
                            {#document.getElementById("print").setAttribute("onclick", "but_click('yb')")#}
                            document.getElementById("ld").innerHTML = "院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见";
                        } else if (JsonDate["data_dic"]["number"].indexOf("JYDB") !== -1) {
                            document.getElementById("h_title").innerText = "党委会议题审批表";
                            if (JsonDate["data_dic"]['is_yb'] === 'true') {
                                document.getElementById("ld").innerHTML = "院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见";
                            }else {
                                document.getElementById("ld").innerHTML = "书&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见";
                            }
                        } else {
                            document.getElementById("h_title").innerText = "行政例会议题审批表";
                            document.getElementById("ld").innerHTML = "院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见";
                            document.getElementById("xb_ks").style.display = 'none';
                            document.getElementById("yt_yj").style.display = 'none';
                            document.getElementById("jj_fa").style.display = 'none';
                            document.getElementById("YdLeaderTr").style.display="none";
                        }
                        var decode = atob(JsonDate["data_dic"]["topics_text"]);
                        // 编码转字符串
                        var content = decodeURI(decode);

                        var decode1 = atob(JsonDate["data_dic"]["topics_basis"]);
                        // 编码转字符串
                        var content1 = decodeURI(decode1);
                        if (JsonDate["data_dic"]["solution"] !== "空") {
                            var decode2 = atob(JsonDate["data_dic"]["solution"]);
                            var content2 = decodeURI(decode2);      // 编码转字符串
                        }

                        document.getElementById("tjr").innerText = JsonDate["data_dic"]["apply_user"];
                        document.getElementById("bh").innerText = JsonDate["data_dic"]["number"];
                        document.getElementById("tjks").innerText = JsonDate["data_dic"]["department"];
                        document.getElementById("ytmc").innerText = JsonDate["data_dic"]["topics_name"];
                        document.getElementById("ygys").innerText = JsonDate["data_dic"]["topics_estimate"];
                        document.getElementById("xieban").innerText = JsonDate["data_dic"]["help_department"];
                        document.getElementById("ysje").innerText = JsonDate["data_dic"]["ysje"];
                        document.getElementById("jfly").innerText = JsonDate["data_dic"]["jfly"];
                        document.getElementById("ytnr").innerHTML = content;
                        document.getElementById("ytyj").innerHTML = content1;
                        document.getElementById("jjfa").innerHTML = content2;

                        if (JsonDate["data_dic"]['main_file_list'].length > 0) {
                            document.getElementById("embed_file").setAttribute("src", JsonDate["data_dic"]['main_file_list'][0]["file_path"].replace("mediaTopics", "/media/Topics"));
                        }

                        uuid = JsonDate["data_dic"]["uuid"];

                        var yt_zhengwen = document.getElementById("yt_zhengwen");
                        for (var d = 0; d < JsonDate["data_dic"]['main_file_list'].length; d++) {
                            var div_tag = document.createElement("div");
                            div_tag.style.width = "100%";
                            div_tag.style.height = "40px";
                            div_tag.style.paddingLeft = "2%";
                            div_tag.style.lineHeight = "40px";
                            var a_tag = document.createElement("a");
                            a_tag.setAttribute("href", "#");
                            a_tag.innerText = JsonDate["data_dic"]['main_file_list'][d]["file_name"];
                            a_tag.setAttribute("onclick", "chage_yulan(this, '" + JsonDate["data_dic"]['main_file_list'][d]["file_path"].replace("\\", "/") + "')");
                            a_tag.className = "a_tag_cla";
                            a_tag.setAttribute("title", JsonDate["data_dic"]['main_file_list'][d]["file_name"])
                            div_tag.appendChild(a_tag);
                            yt_zhengwen.appendChild(div_tag);
                        }

                        var fg_leder = document.getElementById("fg_leder");
                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("B")) {
                            for (var B = 0; B < JsonDate["data_dic"]["audit_list"]['B'].length; B++) {
                                if (JsonDate["data_dic"]["audit_list"]['B'][B]["state"] !== "待审核") {
                                    var fg_hr = document.createElement("hr");
                                    fg_hr.style.marginTop = "3px";
                                    var fg_all_div = document.createElement("div");
                                    fg_all_div.style.width = "100%";
                                    fg_all_div.style.height = "100%";
                                    fg_all_div.style.position = "relative";
                                    var fg_div = document.createElement("div");
                                    var status_fg = document.createElement("p");
                                    status_fg.innerText = JsonDate["data_dic"]["audit_list"]["B"][B]["state"];
                                    var opine_fg = document.createElement("p");
                                    opine_fg.innerText = JsonDate["data_dic"]["audit_list"]['B'][B]["audit_note"];
                                    fg_div.appendChild(status_fg);
                                    fg_div.appendChild(opine_fg);
                                    var div_img = document.createElement("div");
                                    var img_fg = document.createElement("img");
                                    img_fg.src = JsonDate["data_dic"]["audit_list"]["B"][B]["signature_picture"];
                                    img_fg.style.width = "150px";
                                    img_fg.style.height = "60px";
                                    div_img.appendChild(img_fg);
                                    var fg_time = document.createElement("div");
                                    fg_time.style.position = "absolute";
                                    fg_time.style.bottom = '0';
                                    fg_time.style.right = '0';
                                    fg_time.style.width = '300px';
                                    fg_time.style.textAlign = 'right';
                                    fg_time.style.color = '#0b0b0b';
                                    fg_time.innerText = JsonDate["data_dic"]["audit_list"]["B"][B]["audit_time"];
                                    fg_all_div.appendChild(fg_div);
                                    fg_all_div.appendChild(div_img);
                                    fg_all_div.appendChild(fg_time);
                                    if (B !== JsonDate["data_dic"]["audit_list"]['B'].length - 1) {
                                        fg_all_div.appendChild(fg_hr);
                                    }
                                    fg_leder.appendChild(fg_all_div);
                                }
                            }
                        }else {
                            document.getElementById("tr_row").style.display = "none";
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("Y_D_leader")) {
                            var YdLeader_leder = document.getElementById("YdLeader");
                            for (var YdLeader_number = 0; YdLeader_number < JsonDate["data_dic"]["audit_list"]['Y_D_leader'].length; YdLeader_number++) {
                                if (JsonDate["data_dic"]["audit_list"]['Y_D_leader'][YdLeader_number]["state"] !== "待审核") {
                                    var YdLeader_hr = document.createElement("hr");
                                    YdLeader_hr.style.marginTop = "3px";
                                    var YdLeader_all_div = document.createElement("div");
                                    YdLeader_all_div.style.width = "100%";
                                    YdLeader_all_div.style.height = "100%";
                                    YdLeader_all_div.style.position = "relative";
                                    var YdLeader_div = document.createElement("div");
                                    var status_YdLeader = document.createElement("p");
                                    status_YdLeader.innerText = JsonDate["data_dic"]["audit_list"]['Y_D_leader'][YdLeader_number]["state"];
                                    var opine_YdLeader = document.createElement("p");
                                    opine_YdLeader.innerText = JsonDate["data_dic"]["audit_list"]['Y_D_leader'][YdLeader_number]["audit_note"];
                                    YdLeader_div.appendChild(status_YdLeader);
                                    YdLeader_div.appendChild(opine_YdLeader);
                                    var YdLeader_div_img = document.createElement("div");
                                    var YdLeader_img_fg = document.createElement("img");
                                    YdLeader_img_fg.src = JsonDate["data_dic"]["audit_list"]['Y_D_leader'][YdLeader_number]["signature_picture"];
                                    YdLeader_img_fg.style.width = "150px";
                                    YdLeader_img_fg.style.height = "60px";
                                    YdLeader_div_img.appendChild(YdLeader_img_fg);
                                    var YdLeader_time = document.createElement("div");
                                    YdLeader_time.style.position = "absolute";
                                    YdLeader_time.style.bottom = '0';
                                    YdLeader_time.style.right = '0';
                                    YdLeader_time.style.width = '300px';
                                    YdLeader_time.style.textAlign = 'right';
                                    YdLeader_time.style.color = '#0b0b0b';
                                    YdLeader_time.innerText = JsonDate["data_dic"]["audit_list"]['Y_D_leader'][YdLeader_number]["audit_time"];
                                    YdLeader_all_div.appendChild(YdLeader_div);
                                    YdLeader_all_div.appendChild(YdLeader_div_img);
                                    YdLeader_all_div.appendChild(YdLeader_time);
                                    if (YdLeader_number !== JsonDate["data_dic"]["audit_list"]['Y_D_leader'].length - 1) {
                                        YdLeader_all_div.appendChild(YdLeader_hr);
                                    }
                                    YdLeader_leder.appendChild(YdLeader_all_div);
                                }
                            }
                        }else {
                            document.getElementById("YdLeaderTr").style.display="none";
                        }


                        var zr_leder = document.getElementById("zr_leder");
                        for (var zr = 0; zr < JsonDate["data_dic"]["audit_list"]["YB/DB"].length; zr++) {
                            if (JsonDate["data_dic"]["audit_list"]["YB/DB"][zr]["state"] !== "待审核") {
                                var zr_hr = document.createElement("hr");
                                zr_hr.style.marginTop = "3px";
                                var zr_all_div = document.createElement("div");
                                zr_all_div.style.width = "100%";
                                zr_all_div.style.height = "100%";
                                zr_all_div.style.position = "relative";
                                var zr_div = document.createElement("div");
                                var status_zr = document.createElement("p");
                                if (JsonDate["data_dic"]["number"].indexOf("JYXZLH") !== -1) {
                                    if (JsonDate["data_dic"]["audit_list"]["YB/DB"][zr]["state"] === '通过') {
                                        status_zr.innerText = '接收';
                                    } else {
                                        status_zr.innerText = '未接收';
                                    }
                                }else {
                                    status_zr.innerText = JsonDate["data_dic"]["audit_list"]["YB/DB"][zr]["state"];
                                }
                                var opine_zr = document.createElement("p");
                                opine_zr.innerText = JsonDate["data_dic"]["audit_list"]["YB/DB"][zr]["audit_note"];
                                zr_div.appendChild(status_zr);
                                zr_div.appendChild(opine_zr);
                                var zr_img = document.createElement("div");
                                var img_zr = document.createElement("img");
                                img_zr.src = JsonDate["data_dic"]["audit_list"]["YB/DB"][zr]["signature_picture"];
                                img_zr.style.width = "150px";
                                img_zr.style.height = "60px";
                                zr_img.appendChild(img_zr);
                                var zr_time = document.createElement("div");
                                zr_time.style.position = "absolute";
                                zr_time.style.bottom = '0';
                                zr_time.style.right = '0';
                                zr_time.style.width = '300px';
                                zr_time.style.textAlign = 'right';
                                zr_time.style.color = '#0b0b0b';
                                zr_time.innerText = JsonDate["data_dic"]["audit_list"]["YB/DB"][zr]["audit_time"];
                                zr_all_div.appendChild(zr_div);
                                zr_all_div.appendChild(zr_img);
                                zr_all_div.appendChild(zr_time);
                                if (zr !== JsonDate["data_dic"]["audit_list"]["YB/DB"].length - 1) {
                                    zr_all_div.appendChild(zr_hr);
                                }
                                zr_leder.appendChild(zr_all_div);
                            }
                        }

                        var ld_leder = document.getElementById("ld_leder");
                        for (var ld = 0; ld < JsonDate["data_dic"]["audit_list"]["YZ/SJ"].length; ld++) {
                            if (JsonDate["data_dic"]["audit_list"]["YZ/SJ"][ld]["state"] !== "待审核") {
                                var ld_hr = document.createElement("hr");
                                ld_hr.style.marginTop = "3px";
                                var ld_all_div = document.createElement("div");
                                ld_all_div.style.width = "100%";
                                ld_all_div.style.height = "100%";
                                ld_all_div.style.position = "relative";
                                var ld_div = document.createElement("div");
                                var status_ld = document.createElement("p");
                                status_ld.innerText = JsonDate["data_dic"]["audit_list"]["YZ/SJ"][ld]["state"];
                                var opine_ld = document.createElement("p");
                                opine_ld.innerText = JsonDate["data_dic"]["audit_list"]["YZ/SJ"][ld]["audit_note"];
                                ld_div.appendChild(status_ld);
                                ld_div.appendChild(opine_ld);
                                var ld_img = document.createElement("div");
                                var img_ld = document.createElement("img");
                                img_ld.src = JsonDate["data_dic"]["audit_list"]["YZ/SJ"][ld]["signature_picture"];
                                img_ld.style.width = "150px";
                                img_ld.style.height = "60px";
                                ld_img.appendChild(img_ld);
                                var ld_time = document.createElement("div");
                                ld_time.style.position = "absolute";
                                ld_time.style.bottom = '0';
                                ld_time.style.right = '0';
                                ld_time.style.width = '300px';
                                ld_time.style.textAlign = 'right';
                                ld_time.style.color = '#0b0b0b';
                                ld_time.innerText = JsonDate["data_dic"]["audit_list"]["YZ/SJ"][ld]["audit_time"];
                                ld_all_div.appendChild(ld_div);
                                ld_all_div.appendChild(ld_img);
                                ld_all_div.appendChild(ld_time);
                                if (ld !== JsonDate["data_dic"]["audit_list"]["YZ/SJ"].length - 1) {
                                    ld_all_div.appendChild(ld_hr);
                                }
                                ld_leder.appendChild(ld_all_div);
                            }
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("sj")) {
                            document.getElementById("ybtodb_shuji").style.display = "table-row";
                            var sj_leder = document.getElementById("sj_leder");
                            for (var sj = 0; sj < JsonDate["data_dic"]["audit_list"]["sj"].length; sj++) {
                                if (JsonDate["data_dic"]["audit_list"]["sj"][sj]["state"] !== "待审核") {
                                    var sj_hr = document.createElement("hr");
                                    sj_hr.style.marginTop = "3px";
                                    var sj_all_div = document.createElement("div");
                                    sj_all_div.style.width = "100%";
                                    sj_all_div.style.height = "100%";
                                    sj_all_div.style.position = "relative";
                                    var sj_div = document.createElement("div");
                                    var status_sj = document.createElement("p");
                                    status_sj.innerText = JsonDate["data_dic"]["audit_list"]["sj"][sj]["state"];
                                    var opine_sj = document.createElement("p");
                                    opine_sj.innerText = JsonDate["data_dic"]["audit_list"]["sj"][sj]["audit_note"];
                                    sj_div.appendChild(status_sj);
                                    sj_div.appendChild(opine_sj);
                                    var sj_img = document.createElement("div");
                                    var img_sj = document.createElement("img");
                                    img_sj.src = JsonDate["data_dic"]["audit_list"]["sj"][sj]["signature_picture"];
                                    img_sj.style.width = "150px";
                                    img_sj.style.height = "60px";
                                    sj_img.appendChild(img_sj);
                                    var sj_time = document.createElement("div");
                                    sj_time.style.position = "absolute";
                                    sj_time.style.bottom = '0';
                                    sj_time.style.right = '0';
                                    sj_time.style.width = '300px';
                                    sj_time.style.textAlign = 'right';
                                    sj_time.style.color = '#0b0b0b';
                                    sj_time.innerText = JsonDate["data_dic"]["audit_list"]["sj"][sj]["audit_time"];
                                    sj_all_div.appendChild(sj_div);
                                    sj_all_div.appendChild(sj_img);
                                    sj_all_div.appendChild(sj_time);
                                    if (sj !== JsonDate["data_dic"]["audit_list"]["sj"].length - 1) {
                                        sj_all_div.appendChild(sj_hr);
                                    }
                                    sj_leder.appendChild(sj_all_div);
                                }
                            }
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("yb_result") || JsonDate["data_dic"]["audit_list"].hasOwnProperty("xz_result")) {
                            document.getElementById("huiyijieguo").style.display = 'table-row';
                            var jg_leder = document.getElementById("jg_leder");
                            for (var jg = 0; jg < JsonDate["data_dic"]["audit_list"]["yb_result"].length; jg++) {
                                if (JsonDate["data_dic"]["audit_list"]["yb_result"][jg]["state"] !== "待审核") {
                                    var node_list = JsonDate["data_dic"]["audit_list"]["yb_result"][jg]["audit_note"].split(';')
                                    var relust_meetting, option_meetting;
                                    if (node_list.length === 2) {
                                        relust_meetting = node_list[0];
                                        option_meetting = node_list[1];
                                    }
                                    if (node_list.length > 2) {
                                        relust_meetting = node_list[0];
                                        option_meetting = JsonDate["data_dic"]["audit_list"]["yb_result"][jg]["audit_note"].replace(node_list[0] + ";", "");
                                    }
                                    var jg_hr = document.createElement("hr");
                                    jg_hr.style.marginTop = "3px";
                                    var jg_all_div = document.createElement("div");
                                    jg_all_div.style.width = "100%";
                                    jg_all_div.style.height = "100%";
                                    jg_all_div.style.position = "relative";
                                    var jg_div = document.createElement("div");
                                    var status_jg = document.createElement("p");
                                    status_jg.innerText = relust_meetting;
                                    var opine_jg = document.createElement("p");
                                    opine_jg.innerText = option_meetting;
                                    jg_div.appendChild(status_jg);
                                    jg_div.appendChild(opine_jg);
                                    var jg_img = document.createElement("div");
                                    var img_jg = document.createElement("img");
                                    img_jg.src = JsonDate["data_dic"]["audit_list"]["yb_result"][jg]["signature_picture"];
                                    img_jg.style.width = "150px";
                                    img_jg.style.height = "60px";
                                    jg_img.appendChild(img_jg);
                                    var jg_time = document.createElement("div");
                                    jg_time.style.position = "absolute";
                                    jg_time.style.bottom = '0';
                                    jg_time.style.right = '0';
                                    jg_time.style.width = '300px';
                                    jg_time.style.textAlign = 'right';
                                    jg_time.style.color = '#0b0b0b';
                                    jg_time.innerText = JsonDate["data_dic"]["audit_list"]["yb_result"][jg]["audit_time"];
                                    jg_all_div.appendChild(jg_div);
                                    {#jg_all_div.appendChild(jg_img);#}
                                    jg_all_div.appendChild(jg_time);
                                    if (jg !== JsonDate["data_dic"]["audit_list"]["yb_result"].length - 1) {
                                        jg_all_div.appendChild(jg_hr);
                                    }
                                    jg_leder.appendChild(jg_all_div);
                                }
                            }
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("db_result")) {
                            document.getElementById("db_meet_result").style.display = 'table-row';
                            var db_result = document.getElementById("db_result");
                            for (var db_jg = 0; db_jg < JsonDate["data_dic"]["audit_list"]["db_result"].length; db_jg++) {
                                if (JsonDate["data_dic"]["audit_list"]["db_result"][db_jg]["state"] !== "待审核") {
                                    var db_node_list = JsonDate["data_dic"]["audit_list"]["db_result"][db_jg]["audit_note"].split(';')
                                    var db_relust_meetting, db_option_meetting;
                                    if (db_node_list.length === 2) {
                                        db_relust_meetting = db_node_list[0];
                                        db_option_meetting = db_node_list[1];
                                    }
                                    if (db_node_list.length > 2) {
                                        db_relust_meetting = db_node_list[0];
                                        db_option_meetting = JsonDate["data_dic"]["audit_list"]["db_result"][db_jg]["audit_note"].replace(db_node_list[0] + ";", "");
                                    }
                                    var db_jg_hr = document.createElement("hr");
                                    db_jg_hr.style.marginTop = "3px";
                                    var db_jg_all_div = document.createElement("div");
                                    db_jg_all_div.style.width = "100%";
                                    db_jg_all_div.style.height = "100%";
                                    db_jg_all_div.style.position = "relative";
                                    var db_jg_div = document.createElement("div");
                                    var status_db_jg = document.createElement("p");
                                    status_db_jg.innerText = db_relust_meetting;
                                    var opine_db_jg = document.createElement("p");
                                    opine_db_jg.innerText = db_option_meetting;
                                    db_jg_div.appendChild(status_db_jg);
                                    db_jg_div.appendChild(opine_db_jg);
                                    var db_jg_img = document.createElement("div");
                                    var img_db_jg = document.createElement("img");
                                    img_db_jg.src = JsonDate["data_dic"]["audit_list"]["db_result"][db_jg]["signature_picture"];
                                    img_db_jg.style.width = "150px";
                                    img_db_jg.style.height = "60px";
                                    db_jg_img.appendChild(img_db_jg);
                                    var db_jg_time = document.createElement("div");
                                    db_jg_time.style.position = "absolute";
                                    db_jg_time.style.bottom = '0';
                                    db_jg_time.style.right = '0';
                                    db_jg_time.style.width = '300px';
                                    db_jg_time.style.textAlign = 'right';
                                    db_jg_time.style.color = '#0b0b0b';
                                    db_jg_time.innerText = JsonDate["data_dic"]["audit_list"]["db_result"][db_jg]["audit_time"];
                                    db_jg_all_div.appendChild(db_jg_div);
                                    db_jg_all_div.appendChild(db_jg_time);
                                    if (db_jg !== JsonDate["data_dic"]["audit_list"]["db_result"].length - 1) {
                                        db_jg_all_div.appendChild(db_jg_hr);
                                    }
                                    db_result.appendChild(db_jg_all_div);
                                }
                            }
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("OPR")) {
                            document.getElementById("dzb_cs_tr").style.display = 'table-row';
                            var dzb_cs = document.getElementById("dzb_cs");
                            for (var dzb_jg = 0; dzb_jg < JsonDate["data_dic"]["audit_list"]["OPR"].length; dzb_jg++) {
                                if (JsonDate["data_dic"]["audit_list"]["OPR"][dzb_jg]["state"] !== "待审核") {
                                    var dzb_jg_hr = document.createElement("hr");
                                    dzb_jg_hr.style.marginTop = "3px";
                                    var dzb_jg_all_div = document.createElement("div");
                                    dzb_jg_all_div.style.width = "100%";
                                    dzb_jg_all_div.style.height = "100%";
                                    dzb_jg_all_div.style.position = "relative";
                                    var dzb_jg_div = document.createElement("div");
                                    var dzb_jg_opine_ld = document.createElement("p");
                                    dzb_jg_opine_ld.innerText = JsonDate["data_dic"]["audit_list"]["OPR"][dzb_jg]["state"];
                                    dzb_jg_div.appendChild(dzb_jg_opine_ld);
                                    var dzb_jg_img = document.createElement("div");
                                    var dzb_jg_img_ld = document.createElement("img");
                                    dzb_jg_img_ld.src = JsonDate["data_dic"]["audit_list"]["OPR"][dzb_jg]["signature_picture"];
                                    dzb_jg_img_ld.style.width = "150px";
                                    dzb_jg_img_ld.style.height = "60px";
                                    dzb_jg_img.appendChild(dzb_jg_img_ld);
                                    var dzb_jg_time = document.createElement("div");
                                    dzb_jg_time.style.position = "absolute";
                                    dzb_jg_time.style.bottom = '0';
                                    dzb_jg_time.style.right = '0';
                                    dzb_jg_time.style.width = '300px';
                                    dzb_jg_time.style.textAlign = 'right';
                                    dzb_jg_time.style.color = '#0b0b0b';
                                    dzb_jg_time.innerText = JsonDate["data_dic"]["audit_list"]["OPR"][dzb_jg]["audit_time"];
                                    dzb_jg_all_div.appendChild(dzb_jg_div);
                                    dzb_jg_all_div.appendChild(dzb_jg_img);
                                    dzb_jg_all_div.appendChild(dzb_jg_time);
                                    if (dzb_jg !== JsonDate["data_dic"]["audit_list"]["OPR"].length - 1) {
                                        dzb_jg_all_div.appendChild(dzb_jg_hr);
                                    }
                                    dzb_cs.appendChild(dzb_jg_all_div);
                                }
                            }
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("transfer")) {
                            document.getElementById("transfer").style.display = 'table-row';
                            var transfer_result = document.getElementById("transfer_result");
                            for (var transfer_jg = 0; transfer_jg < JsonDate["data_dic"]["audit_list"]["transfer"].length; transfer_jg++) {
                                if (JsonDate["data_dic"]["audit_list"]["transfer"][transfer_jg]["state"] !== "待审核") {
                                    var transfer_ld_hr = document.createElement("hr");
                                    transfer_ld_hr.style.marginTop = "3px";
                                    var transfer_ld_all_div = document.createElement("div");
                                    transfer_ld_all_div.style.width = "100%";
                                    transfer_ld_all_div.style.height = "100%";
                                    transfer_ld_all_div.style.position = "relative";
                                    var transfer_div = document.createElement("div");
                                    var transfer_opine_ld = document.createElement("p");
                                    transfer_opine_ld.innerText = JsonDate["data_dic"]["audit_list"]["transfer"][transfer_jg]["audit_note"];
                                    transfer_div.appendChild(transfer_opine_ld);
                                    var transfer_ld_img = document.createElement("div");
                                    var transfer_img_ld = document.createElement("img");
                                    transfer_img_ld.src = JsonDate["data_dic"]["audit_list"]["transfer"][transfer_jg]["signature_picture"];
                                    transfer_img_ld.style.width = "150px";
                                    transfer_img_ld.style.height = "60px";
                                    transfer_ld_img.appendChild(transfer_img_ld);
                                    var transfer_time = document.createElement("div");
                                    transfer_time.style.position = "absolute";
                                    transfer_time.style.bottom = '0';
                                    transfer_time.style.right = '0';
                                    transfer_time.style.width = '300px';
                                    transfer_time.style.textAlign = 'right';
                                    transfer_time.style.color = '#0b0b0b';
                                    transfer_time.innerText = JsonDate["data_dic"]["audit_list"]["transfer"][transfer_jg]["audit_time"];
                                    transfer_ld_all_div.appendChild(transfer_div);
                                    transfer_ld_all_div.appendChild(transfer_ld_img);
                                    transfer_ld_all_div.appendChild(transfer_time);
                                    if (transfer_jg !== JsonDate["data_dic"]["audit_list"]["transfer"].length - 1) {
                                        transfer_ld_all_div.appendChild(transfer_ld_hr);
                                    }
                                    transfer_result.appendChild(transfer_ld_all_div);
                                }
                            }
                        }

                        if (JsonDate["data_dic"]["audit_list"].hasOwnProperty("marks")) {
                            document.getElementById("yitibeizhu").style.display = 'table-row';
                            var Issuenotes = document.getElementById("yiti_beizhu");
                            for (var ks = 0; ks < JsonDate["data_dic"]["audit_list"]["marks"].length; ks++) {
                                if (JsonDate["data_dic"]["audit_list"]["marks"][ks]["state"] !== "待审核") {
                                    var ks_hr = document.createElement("hr");
                                    ks_hr.style.marginTop = "3px";
                                    var ks_all_div = document.createElement("div");
                                    ks_all_div.style.width = "100%";
                                    ks_all_div.style.height = "100%";
                                    ks_all_div.style.position = "relative";
                                    var ks_div = document.createElement("div");
                                    var status_ks = document.createElement("p");
                                    status_ks.innerText = JsonDate["data_dic"]["audit_list"]["marks"][ks]['audit_note'];
                                    {#var opine_ks = document.createElement("p");#}
                                    {#opine_ks.innerText = JsonDate["data_dic"]["audit_list"]["marks"][ks]['audit_note'];#}
                                    ks_div.appendChild(status_ks);
                                    {#ks_div.appendChild(opine_ks);#}
                                    var ks_img = document.createElement("div");
                                    var img_ks = document.createElement("img");
                                    img_ks.src = JsonDate["data_dic"]["audit_list"]["marks"][ks]["signature_picture"];
                                    img_ks.style.width = "150px";
                                    img_ks.style.height = "60px";
                                    ks_img.appendChild(img_ks);
                                    var ks_time = document.createElement("div");
                                    ks_time.style.position = "absolute";
                                    ks_time.style.bottom = '0';
                                    ks_time.style.right = '0';
                                    ks_time.style.width = '300px';
                                    ks_time.style.textAlign = 'right';
                                    ks_time.style.color = '#0b0b0b';
                                    ks_time.innerText = JsonDate["data_dic"]["audit_list"]["marks"][ks]["audit_time"];
                                    ks_all_div.appendChild(ks_div);
                                    ks_all_div.appendChild(ks_time);
                                    if (ks !== JsonDate["data_dic"]["audit_list"]["marks"].length - 1) {
                                        ks_all_div.appendChild(ks_hr);
                                    }
                                    Issuenotes.appendChild(ks_all_div);
                                }
                            }
                        }

                        {#CreateMyMine(JsonDate["data_dic"]['audit_list']);#}
                    }
                }
            };
        }

        function CreateMyMine(json_data) {
            deltr();
            var my_mine_body = document.getElementById("my_mine_body");
            for (var B = 0; B < json_data['B'].length; B++) {
                var fg_tr = document.createElement("tr");
                var fg_td = document.createElement("td");
                var fg_td1 = document.createElement("td");
                var fg_td2 = document.createElement("td");
                var fg_td3 = document.createElement("td");
                var fg_td4 = document.createElement("td");
                fg_td.innerText = json_data['B'][B]["audit_user"];
                fg_td.style.paddingLeft = "3%";
                fg_td1.innerText = json_data['B'][B]["state"];
                fg_td1.style.paddingLeft = "1%";
                fg_td2.innerText = json_data['B'][B]["audit_time"];
                fg_td2.style.textAlign = "center";
                fg_td3.innerText = json_data['B'][B]["audit_note"];
                fg_td3.style.textAlign = "center";
                if (json_data['B'][B]["signature_picture"]) {
                    fg_td4.innerHTML = "<img style='width: 150px;height: 60px;' src='" + json_data['B'][B]["signature_picture"] + "'>";
                    fg_td4.style.textAlign = "center";
                } else {
                    fg_td4.innerHTML = "";
                    fg_td4.style.textAlign = "center";
                }
                fg_tr.appendChild(fg_td);
                fg_tr.appendChild(fg_td1);
                fg_tr.appendChild(fg_td2);
                fg_tr.appendChild(fg_td3);
                fg_tr.appendChild(fg_td4);
                my_mine_body.appendChild(fg_tr);
            }
            for (var sy = 0; sy < json_data['YZ/SJ'].length; sy++) {
                var sy_tr = document.createElement("tr");
                var sy_td = document.createElement("td");
                var sy_td1 = document.createElement("td");
                var sy_td2 = document.createElement("td");
                var sy_td3 = document.createElement("td");
                var sy_td4 = document.createElement("td");
                sy_td.innerText = json_data['YZ/SJ'][sy]["audit_user"];
                sy_td.style.paddingLeft = "3%";
                sy_td1.innerText = json_data['YZ/SJ'][sy]["state"];
                sy_td1.style.paddingLeft = "1%";
                sy_td2.innerText = json_data['YZ/SJ'][sy]["audit_time"];
                sy_td2.style.textAlign = "center";
                sy_td3.innerText = json_data['YZ/SJ'][sy]["audit_note"];
                sy_td3.style.textAlign = "center";
                if (json_data['YZ/SJ'][sy]["signature_picture"]) {
                    sy_td4.innerHTML = "<img style='width: 150px;height: 60px;' src='" + json_data['YZ/SJ'][sy]["signature_picture"] + "'>";
                    sy_td4.style.textAlign = "center";
                } else {
                    sy_td4.innerHTML = "";
                    sy_td4.style.textAlign = "center";
                }
                sy_tr.appendChild(sy_td);
                sy_tr.appendChild(sy_td1);
                sy_tr.appendChild(sy_td2);
                sy_tr.appendChild(sy_td3);
                sy_tr.appendChild(sy_td4);
                my_mine_body.appendChild(sy_tr);
            }
            for (var zr = 0; zr < json_data['YB/DB'].length; zr++) {
                var zr_tr = document.createElement("tr");
                var zr_td = document.createElement("td");
                var zr_td1 = document.createElement("td");
                var zr_td2 = document.createElement("td");
                var zr_td3 = document.createElement("td");
                var zr_td4 = document.createElement("td");
                zr_td.innerText = json_data['YB/DB'][zr]["audit_user"];
                zr_td.style.paddingLeft = "3%";
                zr_td1.innerText = json_data['YB/DB'][zr]["state"];
                zr_td1.style.paddingLeft = "1%";
                zr_td2.innerText = json_data['YB/DB'][zr]["audit_time"];
                zr_td2.style.textAlign = "center";
                zr_td3.innerText = json_data['YB/DB'][zr]["audit_note"];
                zr_td3.style.textAlign = "center";
                if (json_data['YB/DB'][zr]["signature_picture"]) {
                    zr_td4.innerHTML = "<img style='width: 150px;height: 60px;' src='" + json_data['YB/DB'][zr]["signature_picture"] + "'>";
                    zr_td4.style.textAlign = "center";
                } else {
                    zr_td4.innerHTML = "";
                    zr_td4.style.textAlign = "center";
                }
                zr_tr.appendChild(zr_td);
                zr_tr.appendChild(zr_td1);
                zr_tr.appendChild(zr_td2);
                zr_tr.appendChild(zr_td3);
                zr_tr.appendChild(zr_td4);
                my_mine_body.appendChild(zr_tr);
            }

            if (json_data.hasOwnProperty("result")) {
                for (var jg = 0; jg < json_data['result'].length; jg++) {
                    var node_list_jg = json_data["result"][jg]["audit_note"].split(';')
                    var relust_meetting, option_meetting;
                    if (node_list_jg.length === 2) {
                        relust_meetting = node_list_jg[0];
                        option_meetting = node_list_jg[1];
                    }
                    if (node_list_jg.length > 2) {
                        relust_meetting = node_list_jg[0];
                        option_meetting = json_data["result"][jg]["audit_note"].replace(node_list_jg[0] + ";", "");
                    }
                    var jg_tr = document.createElement("tr");
                    var jg_td = document.createElement("td");
                    jg_td.innerHTML = '会议结果';
                    jg_td.style.paddingLeft = "3%";
                    var jg_td2 = document.createElement("td");
                    jg_td2.innerHTML = relust_meetting;
                    jg_td2.style.paddingLeft = "1%";
                    var jg_td3 = document.createElement("td");
                    jg_td3.innerHTML = json_data['result'][jg]["audit_time"];
                    jg_td3.style.textAlign = "center";
                    var jg_td4 = document.createElement("td");
                    jg_td4.innerHTML = option_meetting;
                    jg_td4.style.textAlign = "center";
                    var jg_td5 = document.createElement("td");
                    {#zr_td3.innerHTML=json_data['result'][jg]["audit_note"];zr_td3.style.textAlign="center";#}
                    jg_tr.appendChild(jg_td);
                    jg_tr.appendChild(jg_td2);
                    jg_tr.appendChild(jg_td3);
                    jg_tr.appendChild(jg_td4);
                    jg_tr.appendChild(jg_td5);
                    my_mine_body.appendChild(jg_tr);
                }
            }
        }

        // 删除列表
        function deltr() {
            var tb = document.getElementById('my_mine_body');
            var rowNum = tb.rows.length;
            for (i = 0; i < rowNum; i++) {
                tb.deleteRow(i);
                rowNum = rowNum - 1;
                i = i - 1;
            }
        }

        function chage_yulan(this_, file_path) {
            var fujian = document.getElementById("fujian");
            var file_index = file_path.lastIndexOf(".")
            var ext = file_path.substring(file_index+1)
            var arr=['jpg', 'JPG', "JPEG", "jpeg", "PNG", "png"];
            var ext_index=arr.indexOf(ext);
            if (ext_index === -1){
                fujian.innerHTML = '<embed id="embed_file" src="'+file_path+'" type="" style="width: 100%;height: 100%;">'
            }else {
                fujian.innerHTML = '<img src="' + file_path + '" alt="application/pdf" style="width: 800px;height: 100%;">'
            }

            var a_tag_list = document.getElementsByClassName("a_tag_cla");
            for (var i = 0;i<a_tag_list.length; i++){
                a_tag_list[i].style.background='';
            }
            this_.style.background='#cfcfcf';
        }

        function change_mind(ele_id) {
            if (ele_id === "my_application") {
                document.getElementById("my_application").style.display = "inline-block";
                document.getElementById("new_issues").style.display = "none";
                document.getElementById("my_application_tab").className = "tab_top top_tag";
                document.getElementById("new_issues_tab").className = "tab_top";
                document.getElementById("vote").style.display = "none";
                document.getElementById("vote_tab").className = "tab_top";
            } else if (ele_id === "new_issues") {
                document.getElementById("new_issues").style.display = "inline-block";
                document.getElementById("my_application").style.display = "none";
                document.getElementById("my_application_tab").className = "tab_top";
                document.getElementById("new_issues_tab").className = "tab_top top_tag";
                document.getElementById("vote").style.display = "none";
                document.getElementById("vote_tab").className = "tab_top";
            }else if (ele_id === 'vote'){
                document.getElementById("vote").style.display = "inline-block";
                document.getElementById("vote_tab").className = "tab_top top_tag";
                document.getElementById("new_issues").style.display = "none";
                document.getElementById("my_application").style.display = "none";
                document.getElementById("my_application_tab").className = "tab_top";
                document.getElementById("new_issues_tab").className = "tab_top";
            }else {
                document.getElementById("new_issues").style.display = "none";
                document.getElementById("my_application").style.display = "none";
                document.getElementById("my_application_tab").className = "tab_top";
                document.getElementById("new_issues_tab").className = "tab_top";
                document.getElementById("vote").style.display = "none";
                document.getElementById("vote_tab").className = "tab_top";
            }
        }

        let title = document.querySelector("#box");
        let addForm = document.querySelector("#new_models");

        title.addEventListener("mousedown", function (e) {
            let x = e.pageX - addForm.offsetLeft;
            let y = e.pageY - addForm.offsetTop;

            document.addEventListener("mousemove", move);

            function move(e) {
                addForm.style.left = e.pageX - x + 'px';
                addForm.style.top = e.pageY - y + 'px';
            }

            document.addEventListener("mouseup", function (e) {
                document.removeEventListener("mousemove", move);
            })
        });

        function close_models() {
            document.getElementById("new_models1").style.display = "none";
        }

        function line_table() {
            var modifys = '{{ modify }}';
            if (modifys === 'true') {
                var my_state = '{{ my_state }}';
                var my_node = `{{ my_node | safe }}`
                if (my_state === 'agree') {
                    document.getElementsByName('vote')[0].checked = true;
                }else if (my_state === 'opposition') {
                    document.getElementsByName('vote')[1].checked = true;
                }else {
                    document.getElementsByName('vote')[2].checked = true;
                }
                document.getElementById('vote_node').value = my_node;
            }
            document.getElementById("new_models1").style.display = "table-row";
        }

        function topic_vote() {
            var DeanFlag = "{{ DeanFlag | safe }}";
            var topic_id = window.location.href.split("vote_id=")[1].split("&")[0].replace("#", '');
            var vote_node = document.getElementById("vote_node").value;         // 投票意见
            var vote_reluse = $("input[type=radio][name=vote]:checked").val();      // 投票结果
            if (vote_reluse === 'opposition'){
                if (!vote_node) {
                    alert("请您填写反对的原因！")
                    return false
                }
            }
            if (DeanFlag === "false") {
                if (vote_reluse === 'waiver'){
                    if (!vote_node) {
                        alert("请您填写弃权的原因！")
                        return false
                    }
                }
            }
            console.log(topic_id, vote_node, vote_reluse)
            document.getElementById("loading").style.display = "inline-block";
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/personal-center/vote_detail.html");
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
            xhr.send("topic_id="+String(topic_id)+"&vote_node="+String(vote_node)+"&vote_reluse="+String(vote_reluse));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        if (JsonDate['code'] !== 200){
                            alert(JsonDate['msg'])
                            return false
                        }
                        window.location.reload();
                    }
                }
             };
        }

        $('.skillbar').each(function(){
            $(this).find('.skillbar-bar').animate({
                width:$(this).attr('data-percent')
            },3000);
        });
    </script>
{% endblock %}
